import hilog from '@ohos.hilog';

/**
 * 日志类
 */
export class Log {
  private static readonly DOMAIN: number = 0x6688;
  private static readonly TAG: string = "SHCALog";
  // 打印日志信息
  static info = (format: string, ...args: any[]) => {
    hilog.info(Log.DOMAIN, Log.TAG, format, args);
  }
  // 打印错误信息
  static error = (format: string, ...args: any[]) => {
    hilog.error(Log.DOMAIN, Log.TAG, format, args);
  }
}